package com.ssyt.yt1.day8;

import java.util.Date;

public class Person {

	private String name;
	private int age;
	private int gender;
	private Date birthday;
	private String hobby;
	private String description;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getHobby() {
		return hobby;
	}

	public void setHobby(String hobby) {
		this.hobby = hobby;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		return "Person [name=" + name + ", age=" + age + ", gender=" + gender
				+ ", birthday=" + birthday + ", hobby=" + hobby
				+ ", description=" + description + "]";
	}

	public static void main(String[] args) {
		Person person = new Person();
		person.setName("圆方");
		person.setAge(-1);
		person.setGender(3);
		person.setBirthday(new Date());
		person.setHobby("no zuo no die!");
		person.setDescription("...");

		System.out.println(person.toString());

		Object object = person;
		System.out.println(object.toString());
	}
}
